const CONTROLE=['../list/buy'];//把所有需要用权限控制的路由全部写入这里
export default function toPage(url,store){
	
	if(CONTROLE.includes(url.split("?")[0])&&(!store.state.user.userName)){
		uni.navigateTo({
			url: "../login/login"
		});
		store.commit("LASTPATH",url)
	}else{
		uni.navigateTo({
			url: url
		});
	}
}